package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.time.Year;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 政策业务对象 t_policy
 *
 * @author ruoyi
 * @date 2023-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TPolicyBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 参与次数-年,几年几次
     */
    @NotNull(message = "参与次数-年不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer joinYear;

    /**
     * 参与次数-次
     */
    @NotNull(message = "参与次数-次不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer joinNum;

    /**
     * 省外-年
     */
    @NotNull(message = "省外-年不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer outProvinceYear;

    /**
     * 省外-次
     */
    @NotNull(message = "省外-次不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer outProvinceNum;

    /**
     * 国外-年
     */
    @NotNull(message = "国外-年不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer abroadYear;

    /**
     * 国外-次
     */
    @NotNull(message = "国外-次不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer abroadNum;

    /**
     * 入职时间限制（填数字，代表几年）
     */
    private int rzsjLimit;

    /**
     * 是否重置报名时间
     */
    private Integer needRe0;
    /**
     * 设定政策实施年份
     */
    private Year newCalculateYear;


}
